import {getRenders} from "../agGridCellRender/renders";
import {convertMapToRow} from "./DataUtils";
import {isEmptyObj} from "../../utils/collectionUtils";
import {DISPLAY_TYPE, DISPLAY_TYPE_NAME} from "../actions/FlowActions";


export function getColumnDef (viewConfig)  {
  let columnDef = viewConfig
  return columnDef
}

export function getGridOptions (existingGridOptions, viewConfig, viewData){
  let gridProperties = {
    ...existingGridOptions,
    columnDef: getColumnDef(viewConfig),
    rowData: viewData,
    frameworkComponents: getRenders()
  }
  return gridProperties
}



